<?php

namespace mbilling\BillingBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class DomainsZonesForm extends AbstractType
{
    protected $gateways;

    public function __construct($gateways)
    {
        $this->gateways = $gateways;
    }
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('reg_cost', 'text');
        $builder->add('ext_cost', 'text');
        $builder->add('name', 'text');
        $builder->add('url', 'text');
        $builder->add('not_found_string', 'text');
        $builder->add('is_active', 'checkbox', array('required' => false));
        $builder->add('gateway_id', 'choice', array('choices' => $this->gateways));
    }
}